package com.neusoft.chatserver.dto;

import com.neusoft.chatserver.entity.Users;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserQuery {
    Integer userId;
    String userName;
    String userRealName;
    String departmentId;
    public UserQuery (Users users){
        this.userId = users.getUserId();
        this.userName = users.getUserName();
        this.userRealName = users.getUserRealname();
        this.departmentId = users.getUserDeptId();
    }
}
